﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeBehind="ListEmergency.aspx.cs" Inherits="lcs.Web.Outstorage.ListEmergency" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script src="../My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script src="../Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script src="../Scripts/JsTools.js" type="text/javascript"></script>
    <script type="text/javascript">
        function checksel() {
            if ($("#<%= GridView1.ClientID %> tr :checkbox:checked").length > 0)
                return true;
            else
            { alert('没有选择任何行！'); return false; }

        }

        function OpenPop(val, w, h) {
            if (true == window.showModalDialog(val, window.self, "dialogwidth=" + w + ";dialogheight=" + h + ";" + " resizable:yes;")) {
                __doPostBack('btn_reload', 'btn_reload_Click');
            }

        }

        function OpenPopWin(val, w, h) {
            //window.showModalDialog(val,window.self,"dialogwidth="+w+";dialogheight="+h+";")

            window.open(val, 'newwindow', "height=" + h + ",width=" + w + ",toolbar=yes,scrollbars=yes");
        }
    </script>
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table cellpadding="0" cellspacing="0" class="style1">
        <tr>
            <td style="height: 15px;">
                <strong>应急出库单列表</strong>
            </td>
        </tr>
        <tr>
            <td style="height: 15px;">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td style="height: 15px; text-align: left;">
                项目名称：<asp:TextBox ID="txt_projectName" runat="server"></asp:TextBox>
                物料名称：<asp:TextBox ID="txt_material" runat="server"></asp:TextBox>
                &nbsp;<asp:Button ID="Button1" runat="server" Text="查询" CssClass="btn" OnClick="Button1_Click" />
            </td>
        </tr>
        <tr>
            <td style="height: 15px;">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td style="height: 15px;">
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BorderWidth="0px"
                    CellPadding="0" CellSpacing="1" CssClass="gv" GridLines="None" 
                    Width="100%" OnPageIndexChanging="GridView1_PageIndexChanging"
                    OnRowCommand="GridView1_RowCommand" AllowPaging="True" OnRowDataBound="GridView1_RowDataBound">
                    <Columns>
                        <asp:TemplateField HeaderText="操作">
                            <ItemTemplate>
                                <asp:LinkButton ID="lbn_print" runat="server" CommandArgument='<%# Bind("emergencyNo") %>'
                                    CommandName="lbn_print" ForeColor="Blue">打印应急出库单</asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="sourceProjectName" HeaderText="项目名称" />
                        <asp:BoundField DataField="sourceProid" HeaderText="项目编号" />
                        <asp:BoundField DataField="material" HeaderText="物料描述" />
                        <asp:BoundField DataField="receive_userName" HeaderText="接收人" />
                    </Columns>
                     <PagerStyle CssClass="mypager" />
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td style="height: 15px;">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td style="height: 15px;">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td style="height: 15px;">
                &nbsp;
            </td>
        </tr>
    </table>
</asp:Content>
